import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'

import useGlobalStore from './modules/infomation'
import useMenuStore from './modules/menu'
import useConfigStore from './modules/config'

const store = createPinia()

store.use(piniaPersist)

export { useGlobalStore, useMenuStore, useConfigStore }

export default store
